{extend name="base" /}
{block name="title"}网站大全{/block}

{block name="main"}
<div class="zbd-main">
	<div class="page">
		<div class="box">
		    <div class="box-content">
		    	<a href="/site?page=1&type=&son=" class="pla_type small {$param['type'] == '' ? 'plted' : ''}">全部分类</a>
		    	{foreach $arrs['pla_type'] as $key => $val}
		    	<a href="/site?page=1&type={$val['type']}&son=" class="pla_type small {$val['type'] == $param['type'] ? 'plted' : ''}">{$val['type']}</a>
		    	{/foreach}
		    </div>
		</div>

		<div class="row mt20">
			<div class="w2">
		        <div class="box">
		        	<div class="box-title">
						<div class="left small black">栏目导航</div>
					</div>
				    <div class="box-content">
				    	{foreach $arrs['pla_type3'] as $key => $val}
				    	<p>
				    		<a href="/site?page=1&type={$param['type']}&son={$val['type']}" title="{$val['type']}" class="plt-info-type {$val['type'] == $param['son'] ? 'typeed' : ''}">
				    			<span>{$val['type']}</span>
				    			{if condition="$val['type'] == $param['son']"}
				    			<i class="icon ice-arrow-triangle-r right"></i>
				    			{/if}
				    		</a>
				    	</p>
				    	{/foreach}
				    </div>
				</div>
		    </div>

		    <div class="w7">
		        <div class="box">
		        	<div class="box-title">
						<div class="left small black">
							<i class="icon ice-computer"></i> 
							<span class="red">[{$param['type']|default='全部'}]</span>

							{if condition="$param['son']"}
								<span class="blue">[{$param['son']|default=''}]</span>
				    		{/if}
							网站大全
						</div>
						<div class="right small gray2">
							<span class="red smll">共 {$arrs['list']['total']|default='0'} 个</span>
						</div>
					</div>
					{foreach $arrs['list']['rows'] as $key => $val}
				    <div class="box-content">
				    	<div class="wz-pic">
				    		<img class="wz-img" src="{$val['pics']|default=''}" alt="{$val['title']|default=''}">
				    	</div>
				    	<div class="wz-mian">
				    		<p class="relative">
				    			<h5><a href="/site/info?id={$val['id']}" class="bold black">{$val['title']|default=''}</a></h5>
				    			<span class="gray2 small wangzhi">{$val['website']|default=''}</span>
				    		</p>
				    		<div class="gray2 small wz-desc">{$val['descs']|default=''}</div>
				    		<div class="weights">
				    			<div class="qz bd">{$val['bd']|default='0'}</div>
				    			<div class="qz bdm">{$val['bdm']|default='0'}</div>
				    			<div class="qz so">{$val['so']|default='0'}</div>
				    			<div class="qz som">{$val['som']|default='0'}</div>
				    			<div class="qz sm">{$val['sm']|default='0'}</div>
				    			<div class="platform-views red">
	        						<img class="icon-svg" src="/iceui/img/hot.svg">
	        						<span>{$val['views']|default=''}</span>
	        					</div>
				    		</div>
				    	</div>
				    </div>
				    {/foreach}
				    <div class="box-content">
				    	<div class="fengye">
				    		<div class="paging" id="paging-1"></div>
				    	</div>
				    </div>
				</div>
		    </div>

		    <div class="w3">
		    	
		    	<div class="box">
		    		<div class="zbd-sign">
		    			<div class="row">
		    				<div class="w4">
		    					<div class="qiandao icon ice-calendar cursor-pointer" title="立刻签到"> 签到</div>
		    				</div>
		    				<div class="w8">
		    					<div class="qd-info">
		    						<div class="qd-col">
		    							<span class="small block qd-tip bdx"><i class="icon ice-user-chart smallicon"></i> 219 人</span>
		    							<span class="small block qd-tip"><i class="icon ice-time smallicon"></i> 签到信息</span>
		    						</div>
		    						<div class="qd-col text-center">
		    							<span class="small block qd-tip">星期一</span>
		    							<span class="small block qd-tip">06月09日</span>
		    						</div>
		    					</div>
		    				</div>
		    			</div>
		    		</div>
		    	</div>

		        <div class="box mt20">
		        	<div class="box-title">
						<div class="left small black"><i class="icon ice-time"></i> 最新加入的站点</div>
					</div>
			    	<div class="box-content">
				    	<div class="item-list">
				    		{foreach $arrs['new_site'] as $key => $val}
				    		<div class="item">
				    			<div class="thumb">
				    				<a href="/site/info?id={$val['id']}" title="{$val['title']}">
				    					<img src="{$val['pics']}" class="img9162" alt="{$val['title']}">
				    				</a>
				    			</div>
				    			<div class="info">
				    				<div class="black">
				    					<a href="/site/info?id={$val['id']}" title="{$val['title']}" class="black">{$val['title']}</a>
				    				</div>
				    				<div class="ddesc">{$val['descs']}
				    				</div>
				    			</div>
				    		</div>
				    		{/foreach}
				    	</div>
				    </div>
				</div>
		    </div>
		</div>


		<!-- 全部-没有带分类名称 -->
		<!-- <div class="mt20">
			<div class="row">
				{foreach $arrs['list']['rows'] as $key => $val}
			    <div class="w3">
			    	<div class="site-item baise">
			    		<div class="site-pic">
			    			<img class="site-img" src="{$val['pics']|default=''}" alt="">
			    		</div>
			    		<div class="site-main">
			    			<div class="site-item-title">
			    				<a href="#">{$val['title']|default=''}</a>
			    			</div>
			    			<div class="small gray mt5 el">{$val['descs']|default=''}</div>
			    			<div class="small gray mt5">网站域名：{$val['website']|default=''}</div>
			    		</div>
			    	</div>
			    </div>
			    {/foreach}
	    	</div>

	    	<div class="fengye">
	    		<div class="paging" id="paging-1"></div>
	    	</div>
	    	
		</div> -->
		
	</div>
</div>
{/block}

{block name="js"}
<script>
	ice.paging({
		id: 'paging-1',
		count: {$arrs['list']['total']},
		size: {$arrs['list']['pageSize']},
		page: {$arrs['list']['page']},
		callback(num) {
			var t = ice.getUrl('type');
			var s = ice.getUrl('son');
			var type = t ? t : '';
			var son = s ? s : '';
			window.location.href = '/site?page=' + num + '&type=' + type + '&son=' + son;
		}
	})
</script>
{/block}